@bassist/utils
Opinionated collection of common JavaScript / TypeScript utils by @chengpeiquan .
- 🌳 Fully tree shakeable
- 💪 Type Strong
- 💡 No bundler required
- 🦄 SSR Friendly
Usage
With npm(or yarn, or pnpm):
npm install @bassist/utils
In .js
/ .ts
or other files:
import { isMobile } from '@bassist/utils'
if (isMobile()) {
}
With CDN:
<script src="https://cdn.jsdelivr.net/npm/@bassist/utils"></script>
<script>
console.log(Utils)
if (Utils.isMobile()) {
}
</script>
Documentation
See: Documentation of utils
Release Notes
Please refer to CHANGELOG for details.
License
MIT License © 2022 chengpeiquan